import Vue from "vue";
import VueRouter from "vue-router";

// 引入组件
import Login from "./components/Login.vue";
import Home from "./components/Home.vue";

// 要告诉 vue 使用 vueRouter
Vue.use(VueRouter);

const routes = [
    {
        path: "/Home",
        component: Home
    },
    {
        path: "/Login",
        component: Login
    },
    {
        path: "/",
        component: Login
    }
]
let router =  new VueRouter({
    routes
})
export default router;